From dcdb00adb4be64768583eb3f0d301a931d7694d4 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 5 Aug 2010 00:12:41 -0400 Subject: [PATCH] Avoid warnings with tooltips on toplevels This was reported for tooltips on statusicons in bug 625235, but it was affecting regular toplevel windows as well. --- gtk/gtktooltip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c index 3a50fc05b8..c75f251a8c 100644 --- a/gtk/gtktooltip.c +++ b/gtk/gtktooltip.c @@ -876,6 +876,8 @@ get_bounding_box (GtkWidget *widget, gint x4, y4; window = gtk_widget_get_parent_window (widget); + if (window == NULL) + window = gtk_widget_get_window (widget); x = widget->allocation.x; y = widget->allocation.y; -- 2.30.2